package com.matrix.index.ui.home.apiService

import com.matrix.basecore.net.WallpaperResultData
import com.matrix.index.ui.anime.bean.MoHuBean
import com.matrix.index.ui.home.bean.BingImage
import com.matrix.index.ui.home.bean.JuheJoke
import com.matrix.index.ui.home.bean.WallpaperBean
import retrofit2.http.GET
import retrofit2.http.Query

interface WallpaperService {

    // limit=12&skip=12&adult=false&first=0&order=hot
    @GET("/v1/vertical/vertical")
    suspend fun agentInfo(
        @Query("limit") limit: Int,
        @Query("skip") skip: Int,
        @Query("adult") adult: Boolean,
        @Query("first") first: Int,
        @Query("order") order: String
    ): WallpaperResultData<WallpaperBean>

    @GET("https://cn.bing.com/HPImageArchive.aspx")
    suspend fun bingImage(
        @Query("format") format: String,
        @Query("idx") idx: Int,
        @Query("n") n: Int,
    ): BingImage

    @GET("http://v.juhe.cn/joke/randJoke.php")
    suspend fun juheJoke(
        @Query("key") key: String,
    ): JuheJoke

    @GET("https://img.moehu.org/pic.php?return=json")
    suspend fun animWallpaper(
        @Query("id") id: String, @Query("num") num: Int, @Query("size") size: String,
    ): MoHuBean
}